package com.deft.design.bridging.channel;

import com.deft.design.bridging.mode.IPayMode;
import lombok.extern.slf4j.Slf4j;

import java.math.BigDecimal;

/**
 * 支付类型桥接抽象类
 * @author Hide丶love
 * @date 2022/04/26
 **/
@Slf4j
public abstract class Pay {

    protected IPayMode payMode;

    public Pay(IPayMode payMode) {
        this.payMode = payMode;
    }

    /**
     * 划账方法
     * @param uId 用户ID
     * @param tradeId 支付ID
     * @param amount 金额
     * @return 划账信息
     */
    public abstract String transfer(String uId, String tradeId, BigDecimal amount);
}
